package com.ruoyi.project.system.erp.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class ScheduleResult {

    /**
     * state : 1
     * data : {"result":[{"plan":[{"type":"原材料采购","start_time":"2018-10-12","end_time":"2018-10-13","sequence":1},{"type":"生产制造","start_time":"2018-10-14","end_time":"2018-10-15","sequence":2},{"type":"成品测试","start_time":"2018-10-15","end_time":"2018-10-16","sequence":3},{"type":"入成品库","start_time":"2018-10-17","end_time":"2018-10-18","sequence":4}],"material_name":"单相电能表标准检定装置，0.05级，12表位","specification":null,"plan_detail":"775695ae7e4a472bbb3e364483a56088","unit":"台","quantity":10,"production_code":"SC-001","delivery_date":"2016-04-21 12:00:00","eff_delivery_date":"2017-09-12 13:21:00","rownum_":1,"attachmentlist":[{"attachment_id":"008eda989c1441e98ac7439fc0266026","file_name":"电商流程.xlsx","id":"4028818a666101e10166611e8bfd0012","file_size":null,"attachment_type":"xlsx","md5":null}]}],"row_total":1,"page_size":10,"current_page":1}
     * msg : 成功
     * ext : {}
     */

    private int state;
    private DataBean data;
    private String msg;
    private ExtBean ext;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * result : [{"plan":[{"type":"原材料采购","start_time":"2018-10-12","end_time":"2018-10-13","sequence":1},{"type":"生产制造","start_time":"2018-10-14","end_time":"2018-10-15","sequence":2},{"type":"成品测试","start_time":"2018-10-15","end_time":"2018-10-16","sequence":3},{"type":"入成品库","start_time":"2018-10-17","end_time":"2018-10-18","sequence":4}],"material_name":"单相电能表标准检定装置，0.05级，12表位","specification":null,"plan_detail":"775695ae7e4a472bbb3e364483a56088","unit":"台","quantity":10,"production_code":"SC-001","delivery_date":"2016-04-21 12:00:00","eff_delivery_date":"2017-09-12 13:21:00","rownum_":1,"attachmentlist":[{"attachment_id":"008eda989c1441e98ac7439fc0266026","file_name":"电商流程.xlsx","id":"4028818a666101e10166611e8bfd0012","file_size":null,"attachment_type":"xlsx","md5":null}]}]
         * row_total : 1
         * page_size : 10
         * current_page : 1
         */

        private int rowTotal;
        private int pageSize;
        private int currentPage;
        private List<ResultBean> result;

        @NoArgsConstructor
        @Data
        public static class ResultBean {
            /**
             * plan : [{"type":"原材料采购","start_time":"2018-10-12","end_time":"2018-10-13","sequence":1},{"type":"生产制造","start_time":"2018-10-14","end_time":"2018-10-15","sequence":2},{"type":"成品测试","start_time":"2018-10-15","end_time":"2018-10-16","sequence":3},{"type":"入成品库","start_time":"2018-10-17","end_time":"2018-10-18","sequence":4}]
             * material_name : 单相电能表标准检定装置，0.05级，12表位
             * specification : null
             * plan_detail : 775695ae7e4a472bbb3e364483a56088
             * unit : 台
             * quantity : 10
             * production_code : SC-001
             * delivery_date : 2016-04-21 12:00:00
             * eff_delivery_date : 2017-09-12 13:21:00
             * rownum_ : 1
             * attachmentlist : [{"attachment_id":"008eda989c1441e98ac7439fc0266026","file_name":"电商流程.xlsx","id":"4028818a666101e10166611e8bfd0012","file_size":null,"attachment_type":"xlsx","md5":null}]
             */

            private String materialName;
            private Object specification;
            private String planDetail;
            private String unit;
            private int quantity;
            private String productionCode;
            private String deliveryDate;
            private String effDeliveryDate;
            private int rownum;
            private List<PlanBean> plan;
            private List<AttachmentlistBean> attachmentlist;

            @NoArgsConstructor
            @Data
            public static class PlanBean {
                /**
                 * type : 原材料采购
                 * start_time : 2018-10-12
                 * end_time : 2018-10-13
                 * sequence : 1
                 */

                private String type;
                private String startTime;
                private String endTime;
                private int sequence;
            }

            @NoArgsConstructor
            @Data
            public static class AttachmentlistBean {
                /**
                 * attachment_id : 008eda989c1441e98ac7439fc0266026
                 * file_name : 电商流程.xlsx
                 * id : 4028818a666101e10166611e8bfd0012
                 * file_size : null
                 * attachment_type : xlsx
                 * md5 : null
                 */

                private String attachmentId;
                private String fileName;
                private String id;
                private Object fileSize;
                private String attachmentType;
                private Object md5;
            }
        }
    }

    @NoArgsConstructor
    @Data
    public static class ExtBean {
    }
}
